package com.pc.mapper;

import com.pc.enrty.ShoppingAddress;

import java.util.ArrayList;

public interface ShoppingAddressMapper {
    /**
     * 根据uid查询收货地址信息
     * @return ShoppingAddress
     */
    ArrayList<ShoppingAddress> selectByUid(ShoppingAddress shoppingAddress);

    /**
     * 插入收货地址
     * @param shoppingAddress ***需要插入uid
     * @return
     */
    int insertShoppingAddress(ShoppingAddress shoppingAddress);

    /**
     * 根据uid修改收货地址
     * @param shoppingAddress
     * @return
     */
    int updateShoppingAddress(ShoppingAddress shoppingAddress);

    /**
     * 根据详细地址，查询对应的收货地址
     * @param shoppingAddress 要查询的详细地址的收货地址对象
     * @return 返回值为一个ShoppingAddress类的对象的集合
     */
    ArrayList<ShoppingAddress> selectId(ShoppingAddress shoppingAddress);


    /**
     * 根据id,查询所有收货地址
     * @param shoppingAddress 存储要查询的所有收货id
     * @return 返回值为一个ShoppingAddress类的对象的集合
     */
    ArrayList<ShoppingAddress> selectAdressById(ShoppingAddress shoppingAddress);

}
